
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildPositionCfg : public ManualSingleton <GuildPositionCfg>
{
	friend ManualSingleton <GuildPositionCfg>;
public:
	GuildPositionCfg();
	~GuildPositionCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildPositionCfgInfo *GetGuildPositionCfgInfo(int32_t positionId);
	const GuildPositionCfgMap *GetGuildPositionCfgMap() { return &m_GuildPositionCfgMap; }
private:
	GuildPositionCfgMap m_GuildPositionCfgMap;
};

#define  g_MakeGuildPositionCfgTable() (GuildPositionCfg::Instance())
#define  g_GetGuildPositionCfgTable() (GuildPositionCfg::GetInstance())
#define  g_DelGuildPositionCfgTable() (GuildPositionCfg::Destroy())